//@ts-nocheck
import React from '../../react';
import ReactDOM from '../../react-dom';

// class ClassCounter extends React.Component {
//   constructor(props) {
//     super(props);
//   }
//   render() {
//     // return React.createElement('div', {id: 'counter'}, 'hello');
//     return <div id='counter'>hello</div>;
//   }
// }

function FunctionCounter(){
  return <div id='counter1'>
    fn function
    <FunctionCounter2/>
  </div>;
}

function FunctionCounter2(){
  return <div id='counter2'>fn function2</div>;
}

console.log(111);
ReactDOM.render(
  <FunctionCounter/>,
  document.getElementById('root')
);
